package dataprovider;

import java.util.Random;

public class RandomSortedData implements DataProvider<Integer> {

	public Integer[] getData(int size) {
		if (size <= 0)
			return null;
		Integer[] data = new Integer[size];
		Random r = new Random();
		for (int i = 0; i < size; i++) {
			data[i] = r.nextInt(size);
		}
		return data;
	}

}
